<?php
html::printPath(html::createCrudPath('viAccomodationType', $viAccomodationType, 'name', 'code'));
$msg->printMessages();

$fb = new FormBuilder('viAccomodationType', $viAccomodationType);
$fb->text('code')->required()->readOnly(sql::isPersistent($viAccomodationType));
$fb->text('name')->required();
$fb->textarea('description');
$fb->submitButton();
$fb->write();
?>
